package game.console;

public abstract class AbstractMessageAndIteratorConsoleStream<TYPE> extends AbstractIteratorConsoleStream<TYPE> implements IConsoleStream
{
    private boolean messageReturned = false;
    
    protected abstract String getMessage();
    
    @Override
    public String readLine()
    {
        if (messageReturned == false)
        {
            messageReturned = true;
            return getMessage();
        }
        return super.readLine();
    }
}
